#ifndef PLUGINMANAGERWINDOW_H
#define PLUGINMANAGERWINDOW_H

#include <QWidget>
#include "pluginitem.h"
#include "configmanager.h"
#include <QFile>
#include <QDir>
#include <QFileInfoList>
#include "global.h"
#include "pluginitem.h"
#include "pluginmanager.h"
#include "utils.h"

namespace Ui {

class PluginManagerWindow;
}

class PluginManagerWindow : public QWidget
{
    Q_OBJECT

public:
    explicit PluginManagerWindow(QWidget *parent = nullptr);
    ~PluginManagerWindow();

    // 加载插件
    void loadPlugins();

    // 删除插件
    void deletePlugin(PluginItem *pluginItem);

private slots:
    void on_pushButton_clicked();

private:
    Ui::PluginManagerWindow *ui;

public:
    // 插件缓存
//    QVector<PluginInfo> plugins;
    QVector<PluginItem *> plugins;

};

#endif // PLUGINMANAGERWINDOW_H
